<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改渠道分析管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cooperationDataManagement-edit" th:object="${cooperationDataManagement}">
            <input name="id" th:field="*{id}" type="hidden">

            <div class="form-group">
                <label class="col-sm-3 control-label">资源：</label>
                <div class="col-sm-8">
                    <input name="resource" class="form-control" type="text" th:field="*{resource}" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠重率：</label>
                <div class="col-sm-8">
                    <input name="channelRepetitionRate" class="form-control" type="text" th:field="*{channelRepetitionRate}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">id删除率：</label>
                <div class="col-sm-8">
                    <input name="idDelRate" class="form-control" type="text" th:field="*{idDelRate}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">开口率：</label>
                <div class="col-sm-8">
                    <input name="openMouthRate" class="form-control" type="text" th:field="*{openMouthRate}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">资源折扣率：</label>
                <div class="col-sm-8">
                    <input name="resourceRebateRate" class="form-control" type="text" th:field="*{resourceRebateRate}">
                </div>
            </div>

            <!--<div class="form-group">
                <label class="col-sm-3 control-label">平台名称：</label>
                <div class="col-sm-8">
                    <select name="platformName" class="form-control" >
                        <option value="抖音" th:field="*{platformName}">抖音</option>
                        <option value="视频号" th:field="*{platformName}">视频号</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">渠道类型：</label>
                <div class="col-sm-8">
                    <input name="channelType" class="form-control" type="text" th:field="*{channelType}">
                </div>
            </div>-->
            <div class="form-group">
                <label class="col-sm-3 control-label">加粉方案：</label>
                <div class="col-sm-8">
                    <input name="addPowderPlan" class="form-control" type="text" th:field="*{addPowderPlan}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否测试：</label>
                <div class="col-sm-8">
                    <select name="testFlag" class="form-control" >
                        <option value="否" th:field="*{testFlag}">否</option>
                        <option value="是" th:field="*{testFlag}">是</option>
                    </select>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "bajiaostar/cooperationDataManagement";
        $("#form-cooperationDataManagement-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-cooperationDataManagement-edit').serialize());
            }
        }
    </script>
</body>
</html>